Warning: This guide contains system-level modifications. Some steps are irreversible or can render your system unbootable. Read every section fully before executing any command. Know what you are doing, or do not proceed.
| # | Section |
|---|
This is stuff that has worked well for me.
Tested on Arch Linux, Ryzen 7 5800X, 64GB RAM, RX 7900 GRE, ROCM 7.2
FLASH_ATTENTION_FWD_TRITON_AMD_CONFIG_JSON.| #!/usr/bin/env python3 | |
| import requests | |
| from plexapi.server import PlexServer | |
| from plexapi.myplex import MyPlexAccount | |
| import argparse | |
| import json | |
| import random | |
| import string | |
| import time |
| ############ WordPress #################### | |
| # Disable logging for favicon and robots.txt | |
| location = /favicon.ico { | |
| try_files /favicon.ico @empty; | |
| access_log off; | |
| log_not_found off; | |
| expires max; | |
| } |
| # DNS 配置可自行修改 | |
| port: 7890 | |
| allow-lan: true | |
| mode: rule | |
| log-level: info | |
| unified-delay: true | |
| global-client-fingerprint: chrome | |
| dns: | |
| enable: true | |
| listen: :53 |
I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.
So below I made a list of leetcode problems that are as close to grokking problems as possible.
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
| import cv2 | |
| import numpy as np | |
| from mss import mss | |
| import ctypes | |
| import math | |
| import winsound | |
| import threading | |
| import sys | |
| import time | |
| import os |
| #docker setup | |
| echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | sudo tee /etc/apt/sources.list.d/docker.list | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo apt update | |
| sudo apt install docker-ce docker-ce-cli containerd.io pigz | |
| #execution permission | |
| sudo usermod -aG docker $USER | |
| #docker compose |